namespace CSSharpPro._1030;

public class Child : Father
{
    private int id;

    public int Id
    {
        get => id;
        set => id = value;
    }

    public Child()
    {
        Console.WriteLine("Child---------Constructor");
    }

    public Child(int id) : base(id)
    {
        this.id = id;
    }

    public override void Print()
    {
        Console.WriteLine("Child---------Print");
    }
    public override void M1()
    {
        Console.WriteLine("实现 M1 方法");;
    }
}
    
